export class Result {
    success: boolean;
    message: string;
    constructor(success: boolean, message: string) {
        this.success = success;
        this.message = message;
    }
    public static success(message: string = "操作成功"): Result {
        return new Result(true, message);
    }
    public static failure(message: string = "操作失败"): Result {
        return new Result(false, message);
    }
}